import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listGrid(query) {
  return request({
    url: '/form/config/modelfield/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getGrid(id) {
  return request({
    url: '/form/config/modelfield/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addGrid(data) {
  return request({
    url: '/form/config/modelfield',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateGrid(data) {
  return request({
    url: '/form/config/modelfield',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delGrid(id) {
  return request({
    url: '/form/config/modelfield/' + id,
    method: 'delete'
  })
}
//以上是代码生成，以下是自定义
/***********************************************************/
// 查询筛选项表格显示列表
export function gridConfigView(query) {
  return request({
    url: '/form/config/modelfield/getConfigView',
    method: 'get',
    params: query
  })
}
// 删除表格显示
export function delGridConfig(id) {
  return request({
    url: '/form/config/modelfield/' + id,
    method: 'delete'
  })
}
// 修改表格显示
export function updateGridConfigParts(data) {
  return request({
    url: '/form/config/modelfield/updateParts',
    method: 'post',
    data: data
  })
}
// 查询表格显示列表
export function listContainMCode(query) {
  return request({
    url: '/form/config/modelfield/listContainMCode',
    method: 'get',
    params: query
  })
}
/*
// 查询表格显示列表
export function listGridConfig(query) {
  return request({
    url: '/form/config/modelfield/list',
    method: 'get',
    params: query
  })
}
// 查询筛选项表格显示列表
export function getConfig(query) {
  return request({
    url: '/form/config/modelfield/getConfig',
    method: 'get',
    params: query
  })
}
// 查询表格显示详细
export function getGridConfig(id) {
  return request({
    url: '/form/config/modelfield/' + id,
    method: 'get'
  })
}

// 新增表格显示
export function addGridConfig(data) {
  return request({
    url: '/form/config/modelfield/gridConfig',
    method: 'post',
    data: data
  })
}

// 修改表格显示
export function updateGridConfig(data) {
  return request({
    url: '/form/config/modelfield/gridConfig',
    method: 'put',
    data: data
  })
}

// 查询左侧导航
export function getLeftInfo() {
  return request({
    url: '/form/config/modelfield/getLeftInfo/',
    method: 'get'
  })
}
*/
